import pytest

from info_auto.common.yaml_util import YamlUtil


@pytest.fixture(scope='function')
def conn_database():
    print("连接数据库")
    yield
    print("关闭数据库")

@pytest.fixture(scope='session', autouse=True)
def clear_extract_yaml():
    # 清除extract.yaml里的值
    YamlUtil().clear_extract_yaml()
